<!DOCTYPE html>
<html>
<head th:include="common/header_css::header('霸王餐小程序后台管理-投票记录','%')"></head>
<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="ibox float-e-margins">
        <div th:replace="common/toolbar::toolbar('投票记录管理')"></div>
        <div th:replace="common/search::search('%add')"></div>
    </div>
</div>

<!--添加ToupiaoLog模态框-->
<div id="modal-add-form" class="modal fade" aria-hidden="true">
    <div class="modal-dialog" style="width: 800px;">
        <div class="modal-content">
            <div class="modal-body">
                <div class="row">
                    <h3 class="m-t-none m-b">投票记录添加</h3>
                    <div class="col-sm-12">
                        <div class="ibox float-e-margins">
                            <div class="ibox-content">
                                <form id="aform" method="post" class="form-horizontal" action="add" onsubmit="return checkAdd()">
                                                                                                                                                                                                                                                                                                                                                                                                                                                                <div class="row">
                                                                                                                                    <div class="col-md-6">
                                                <div class="form-group">
                                                    <label class="col-sm-4 control-label" >投票报名活动ID</label>
                                                    <div class="col-sm-8">
                                                            <input  class="form-control" name="gid"
                                                                                                                                                                                                type="number" />
                                                                                                                </div>
                                                </div>
                                            </div>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <div class="col-md-6">
                                                <div class="form-group">
                                                    <label class="col-sm-4 control-label" >投票活动ID</label>
                                                    <div class="col-sm-8">
                                                            <input  class="form-control" name="oid"
                                                                                                                                                                                                type="number" />
                                                                                                                </div>
                                                </div>
                                            </div>
                                                                                                                                        </div>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <div class="row">
                                                                                                                                                                                                                                </div>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <div class="row">
                                                                                                                                    <div class="col-md-6">
                                                <div class="form-group">
                                                    <label class="col-sm-4 control-label">投票日期
                                                        </label>
                                                    <div class="col-sm-8">
                                                        <input type="date" class="form-control selectData" readonly id="tpdate"  name="tpdate">
                                                    </div>
                                                </div>
                                            </div>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <div class="col-md-6">
                                                <div class="form-group">
                                                    <label class="col-sm-4 control-label" >今日投票次数</label>
                                                    <div class="col-sm-8">
                                                            <input  class="form-control" name="amount"
                                                                                                                                                                                                type="number" />
                                                                                                                </div>
                                                </div>
                                            </div>
                                                                                                                                        </div>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <div class="row">
                                                                                                                                                                                                                                </div>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <div class="row">
                                                                                                                                    <div class="col-md-6">
                                                <div class="form-group">
                                                    <label class="col-sm-4 control-label" >用户手机</label>
                                                    <div class="col-sm-8">
                                                            <input  class="form-control" name="phone"
                                                                                                                                                                                        type="number" isPhone maxlength="11" />
                                                                                                                </div>
                                                </div>
                                            </div>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <div class="col-md-6">
                                                <div class="form-group">
                                                    <label class="col-sm-4 control-label" >用户昵称                                                        *
                                                    </label>
                                                    <div class="col-sm-8">
                                                            <input  class="form-control" name="nickname"
                                                                                                                            required
                                                                                                                                                                                        type="text" maxlength="50"  />
                                                                                                                </div>
                                                </div>
                                            </div>
                                                                                                                                        </div>
                                                                                                                                                                                                                                                                                                                                                                                                                                        <div class="row">
                                                                                                                                    <div class="col-md-6">
                                                <div class="form-group">
                                                    <label class="col-sm-4 control-label">创建时间购买时间
                                                        </label>
                                                    <div class="col-sm-8">
                                                        <input type="date" class="form-control selectData" readonly id="createtime"  name="createtime">
                                                    </div>
                                                </div>
                                            </div>
                                                                                                                                                                                                                                            </div>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <div class="row">
                                                <div class="col-md-12">
                                                    <div class="form-group">
                                                        <label class="col-sm-2 control-label">用户图像</label>
                                                        <div class="col-sm-10">
                                                            <input id="mfileavatarpic" name="mfile" type="file" class="file"/>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <div class="form-group">
                                        <div class="col-sm-4 col-sm-offset-2">
                                            <button class="btn btn-primary" type="submit">保存内容</button>
                                            <button data-toggle="modal" type="button" class="btn btn-white" href="#modal-add-form" >取消</button>
                                        </div>
                                    </div>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <input id="hidavatarpic" name="avatarpic" type="hidden" value=""
                                                                                            />
                                                                                                                                                                                                                                                                                                                                                                                            </form>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<!--修改ToupiaoLog模态框-->
<div id="modal-form" class="modal fade" aria-hidden="true">
    <div class="modal-dialog" style="width: 800px;">
        <div class="modal-content">
            <div class="modal-body">
                <div class="row">
                    <h3 class="m-t-none m-b">投票记录修改</h3>
                    <div class="col-sm-12">
                        <div class="ibox float-e-margins">
                            <div class="ibox-content">
                                <form id="mform" method="post" class="form-horizontal" action="modify" onsubmit="return checkModify()">
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <div class="row">
                                                                                                                                    <div class="col-md-6">
                                                <div class="form-group">
                                                    <label class="col-sm-4 control-label" >投票报名活动ID</label>
                                                    <div class="col-sm-8">
                                                        <input  class="form-control" id="gid" name="gid"
                                                                                                                                                                                       type="number" />
                                                                                                                </div>
                                                </div>
                                            </div>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <div class="col-md-6">
                                                <div class="form-group">
                                                    <label class="col-sm-4 control-label" >投票活动ID</label>
                                                    <div class="col-sm-8">
                                                        <input  class="form-control" id="oid" name="oid"
                                                                                                                                                                                       type="number" />
                                                                                                                </div>
                                                </div>
                                            </div>
                                                                                                                                    </div>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <div class="row">
                                                                                                                                    <div class="col-md-6">
                                                <div class="form-group">
                                                    <label class="col-sm-4 control-label" >参与用户uid</label>
                                                    <div class="col-sm-8">
                                                        <input  class="form-control" id="uid" name="uid"
                                                                                                                                                                                       type="number" />
                                                                                                                </div>
                                                </div>
                                            </div>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <div class="col-md-6">
                                                <div class="form-group">
                                                    <label class="col-sm-4 control-label">投票日期</label>
                                                    <div class="col-sm-8">
                                                        <input type="text" class="form-control selectData" readonly id="tpdate2" name="tpdate">
                                                    </div>
                                                </div>
                                             </div>
                                                                                                                                    </div>
                                                                                                                                                                                                                                                                                                                                                                                                                                        <div class="row">
                                                                                                                                    <div class="col-md-6">
                                                <div class="form-group">
                                                    <label class="col-sm-4 control-label" >今日投票次数</label>
                                                    <div class="col-sm-8">
                                                        <input  class="form-control" id="amount" name="amount"
                                                                                                                                                                                       type="number" />
                                                                                                                </div>
                                                </div>
                                            </div>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <div class="col-md-6">
                                                <div class="form-group">
                                                    <label class="col-sm-4 control-label" >用户手机</label>
                                                    <div class="col-sm-8">
                                                        <input  class="form-control" id="phone" name="phone"
                                                                                                                                                                                        type="number" isPhone maxlength="11" />
                                                                                                                </div>
                                                </div>
                                            </div>
                                                                                                                                    </div>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <div class="row">
                                                                                                                                    <div class="col-md-6">
                                                <div class="form-group">
                                                    <label class="col-sm-4 control-label" >用户昵称                                                        *
                                                    </label>
                                                    <div class="col-sm-8">
                                                        <input  class="form-control" id="nickname" name="nickname"
                                                                                                                            required
                                                                                                                                                                                       type="text" maxlength="50"  />
                                                                                                                </div>
                                                </div>
                                            </div>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <div class="col-md-6">
                                                <div class="form-group">
                                                    <label class="col-sm-4 control-label">创建时间购买时间</label>
                                                    <div class="col-sm-8">
                                                        <input type="text" class="form-control selectData" readonly id="createtime2" name="createtime">
                                                    </div>
                                                </div>
                                             </div>
                                                                                                                                    </div>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <div class="row">
                                                <div class="col-md-12">
                                                <div class="form-group">
                                                    <label class="col-sm-2 control-label">用户图像</label>
                                                    <div class="col-sm-10">
                                                        <input id="mfileavatarpic2" name="mfile" type="file" class="file" />
                                                    </div>
                                                </div>
                                                </div>
                                            </div>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <div class="form-group">
                                        <div class="col-sm-4 col-sm-offset-2">
                                            <button class="btn btn-primary" type="submit">保存内容</button>
                                            <button data-toggle="modal" type="button" class="btn btn-white" href="#modal-form" >取消</button>
                                        </div>
                                    </div>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <input id="hidavatarpic2" name="avatarpic" type="hidden" value=""
                                                                                            />
                                                                                                                                                                                                                                                                                                                                                                                                <input id="id" name="id" type="hidden" value="" />
                                </form>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<div th:include="common/footer_js::footer"></div>
                                                                                                                                                                                <script src="/js/admin/toupiaolog.js"></script>
</body>
</html>
